<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>


<c:if test="${not empty topics}">
<c:forEach var="topic" items="${topics}">
<div id="topic-${topic.id}" class="linkblock frontpage">
    <div id="thumb_${topic.id}" class="thumb"></div>
    <div class="details">
        <p class="fineprint byline">
            username
        </p>
        <p class="fineprint byline">
            <b>Promoted:</b><fmt:formatDate value="${forum.editdate.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>. Views: ${topic.views}, Replies: ${topic.replies}
        </p>
        <p class="description">
            ${topic.subject}
        </p>
    </div>
</div>
</c:forEach>
</c:if>